<template>
    <div class="detilBox">
        <div class="head">
            <div class="imgBox">
                <img src="" alt="">
            </div>
            <p>
                微志益
            </p>
        </div>
        <div class="bt">
            寻人启事
        </div>
        <div class="content">
           <div class="imgBox">
               <div class="img">
                   <img :src="this.IndexData.img" alt="">
               </div>
           </div>
           <div class="txtBox">
               <p class="title">详细信息</p>
               <p>寻亲类别：
                   <span>{{this.IndexData.label}}</span>
                </p>
               <p>姓名：
                   <span>{{this.IndexData.name}}</span>
               </p>
               <p>性别：
                   <span>{{this.IndexData.sex}}</span>
               </p>
               <p>出生日期：
                   <span>{{this.IndexData.birth}}</span>
               </p>
               <p>失踪时间：
                   <span>{{this.IndexData.time}}</span>
               </p>
               <p>失踪时身高：
                   <span>{{this.IndexData.height}}</span>
               </p>
               <p>失踪地点：
                   <span>{{this.IndexData.szdidian}}</span>
               </p>
               <p>其他描述：
                   <span>{{this.IndexData.content}}</span>
               </p>
               <p>联系人：
                   <span>{{this.IndexData.postman}}</span>
               </p>
               <p>联系电话：
                   <span class="phone">{{this.IndexData.phone}}</span>
               </p>
           </div>
        </div>
        <end></end>
    </div>
</template>
<script>
import {getFind} from '../../api/Find'

export default {
    data(){
        return{
            detailData:"",
            IndexData:""
        }
    },
    mounted(){
        getFind().then(res=>{
             //截取出id
             let id=this.$route.params.id.slice(3)
              this.IndexData=res.data.filter(item=>{
                 return item._id == id
             })
             this.IndexData=this.IndexData[0]
            //  console.log(this.IndexData);
        })      
    }
}
</script>
<style lang="scss" scoped>
    .head{
        width: 100%;
        height: 60px;
        border: 1px solid;
        display: flex;
        padding: 0 200px;
        box-sizing: border-box;
        background: #333;
        min-width: 1000px;
        position: fixed;
        top: 0;
        .imgBox{
            width: 45px;
            height: 45px;
            border: 1px solid #ccc;
            border-radius: 50%;
            background: url('/images/image3.jpg');
            background-size: cover;
            background-position: -7px 2px;
            margin-top: 6px;
        }
        p{
            line-height: 60px;
            padding-left: 20px;
            color: green;
            font-size: 18px;
        }
    }
    .bt{
        margin-top: 80px;
        text-align: center;
        font-size: 24px;
        color: green;
        font-weight: bolder;
    }
    .content{
        width: 1000px;
        border: 1px solid #e3e3e3;
        margin:40px auto;
        padding: 20px 40px;
        display: flex;
        justify-content: space-between;
        .imgBox{
            width: 360px;
            padding: 40px 10px;
            box-sizing: border-box;
            overflow: hidden;
            .img{
                width: 260px;
                overflow: hidden;
                margin: auto;
                border: 1px solid #e3e3e3;
                img{
                    width: 100%;
                }
            }
        }
        .txtBox{
            width: 600px;
            border: 1px solid #e3e3e3;
            padding: 20px 40px;
            box-sizing: border-box;
            .title{
                text-align: center;
                font-size: 22px;
                color: green;
                font-weight: bolder;
                border: none;
            }
            p{
                border-bottom: 1px dashed green;
                padding: 10px 0;
                color: green;
                font-size: 13px;
                span{
                    color: #333;
                }
                .phone{
                    color: red;
                }
            }
        }
    }
</style>